package com.javastudy.a03staticdemo3;

import java.util.ArrayList;

public class text {
    public static void main(String[] args) {
        ArrayList<Student> list = new ArrayList<>();
        Student stu1 = new Student("zhangsan", "nan", 20);
        Student stu2 = new Student("lisi","nv",24);
        Student stu3 = new Student("wangwu", "nan", 23);
        list.add(stu1);
        list.add(stu2);
        list.add(stu3);
        int maxAge = StudentUtil.getMaxAge(list);
        System.out.println(maxAge);
    }
}
